package org.example.myleet.p905;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[4,2,1,3]".equals(JsonUtils.toJson(solution.sortArrayByParity(new int[]{3,1,2,4}))));
        Assert.isTrue("[0]".equals(JsonUtils.toJson(solution.sortArrayByParity(new int[]{0}))));
        Assert.isTrue("[4,0,2,3,1]".equals(JsonUtils.toJson(solution.sortArrayByParity(new int[]{1,0,3,2,4}))));
    }
}
